package libs

import (
	"crypto/md5"
	"fmt"
	"os"
)

func MD5(str string) string {
	return fmt.Sprintf("%x", md5.Sum([]byte(str)))
}
func GetSourcePath() string {
	file, err := os.Getwd()
	if err != nil {
		panic(err)
	}
	return file + "/source"
}
